<%-- 
    Document   : display_list_of_products
    Created on : Jan 5, 2012, 1:40:08 AM
    Author     : Fernando
--%>

<%@page import="com.sdd.plains.ProductPlain"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
List<ProductPlain> products = (List<ProductPlain>) request.getSession().getAttribute("products");
for(ProductPlain p:products){
%>     
<div class="img">
    <img src="img/stewie.jpg" width="100" height="100" onclick="viewProduct('<%=p.getProductId()%>')"/>
    <div class="desc" onclick="viewProduct('<%=p.getProductId()%>')">
        <%=p.getName()%>
    </div>
    <div class="desc">
        <%=p.getPrice()%> &euro;
    </div>
</div>
<%
}
%>
